package com.leader.say.Service;

import com.github.pagehelper.Page;
import com.leader.say.entity.User;
import com.leader.say.query.UserQuery;

import java.util.List;

public interface UserService {
    public List<User> userList();

    public Page<User> findByPage(UserQuery query, int pageNo, int pageSize);

    public int insert(User user);

    public int delete(int id);

    public User findByName(String name);
}
